package com.mall.shop.entity.coupon;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * (Coupon)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-01-15 14:24:59
 */
@Getter
@Setter
@TableName("sms_coupon")
@Schema(name = "实体", description = "映射")
public class Coupon implements Serializable {
    private static final long serialVersionUID = 241458890821603828L;

    @TableId(value = "id" , type = IdType.AUTO)
    @Schema(description = "id")
    private Long id;

    @TableField(value = "coupon_type")
    @Schema(description = "")
    private Integer couponType;
    
    @TableField(value = "coupon_img")
    @Schema(description = "")
    private String couponImg;
    
    @TableField(value = "coupon_name")
    @Schema(description = "")
    private String couponName;
    
    @TableField(value = "num")
    @Schema(description = "")
    private Integer num;
    
    @TableField(value = "amount")
    @Schema(description = "")
    private Double amount;
    
    @TableField(value = "per_limit")
    @Schema(description = "ÿ")
    private Integer perLimit;
    
    @TableField(value = "min_point")
    @Schema(description = "ʹ")
    private Double minPoint;
    
    @TableField(value = "start_time")
    @Schema(description = "")
    private Date startTime;
    
    @TableField(value = "end_time")
    @Schema(description = "")
    private Date endTime;
    
    @TableField(value = "use_type")
    @Schema(description = "ʹ")
    private Integer useType;
    
    @TableField(value = "note")
    @Schema(description = "")
    private String note;
    
    @TableField(value = "publish_count")
    @Schema(description = "")
    private Integer publishCount;
    
    @TableField(value = "use_count")
    @Schema(description = "")
    private Integer useCount;
    
    @TableField(value = "receive_count")
    @Schema(description = "")
    private Integer receiveCount;
    
    @TableField(value = "enable_start_time")
    @Schema(description = "")
    private Date enableStartTime;
    
    @TableField(value = "enable_end_time")
    @Schema(description = "")
    private Date enableEndTime;
    
    @TableField(value = "code")
    @Schema(description = "")
    private String code;
    
    @TableField(value = "member_level")
    @Schema(description = "")
    private Integer memberLevel;
    
    @TableField(value = "publish")
    @Schema(description = "")
    private Integer publish;
    
}

